package com.henu.acmrating.dao;

import com.henu.acmrating.pojo.Comment;
import com.henu.acmrating.pojo.CommentWithChildCommentList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertOrUpdate(Comment record);

    int insertOrUpdateSelective(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    List<Comment> selectByBlogId(@Param("blogId")Integer blogId);


    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    int updateBatch(List<Comment> list);

    int batchInsert(@Param("list") List<Comment> list);

    List<CommentWithChildCommentList> commentWithChild(@Param("blogId") Integer blogId);


}